﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace TwitterMatic.Shared.Validation
{
    public static class TimedTweetValidation
    {
        public static bool ValidateFutureDate(DateTime value)
        {
            try
            {
                DateTime futureDate = (DateTime)value;

                return futureDate > DateTime.Now.AddMinutes(-5);
            }
            catch
            {
                return false;
            }
        }
    }
}
